﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.StoreManagement.StoragePut
{
    /// <summary>
    /// 出库详细表
    /// </summary>
    public  class DeliveryDocument : FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 放行单号
        /// </summary>
        public string ReleaseOrder { get; set; }
        /// <summary>
        /// 合格证号
        /// </summary>
        public string QualifiedNumber { get; set; }

        /// <summary>
        /// 出库单号
        /// </summary>
        public string DeliveryNo { get; set; }

        /// <summary>
        /// 仓库ID
        /// </summary>
        public Guid? StoreId { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        public string StroeName { get; set; }

        /// <summary>
        /// 装配任务号
        /// </summary>
        public string AssemblyTaskNumber { get; set; }

        /// <summary>
        /// 型号(产品代号)
        /// </summary>
        public string ProductCode { get; set; }
        /// <summary>
        /// 发次
        /// </summary>
        public string SendTime { get; set; }

        /// <summary>
        /// 出库状态
        /// </summary>
        public OutboundRetrieval RetrievalState { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 出库人
        /// </summary>
        public long? OutPeopleId { get; set; }
        /// <summary>
        /// 出库人
        /// </summary>
        public string OutPeople { get; set; }
        /// <summary>
        /// 出库时间
        /// </summary>
        public DateTime? StorePutTime { get; set; }
        /// <summary>
        /// 确认人
        /// </summary>
        public long? IdentifyingPeopleId { get; set; }
        /// <summary>
        /// 确认人
        /// </summary>
        public string IdentifyingPeople { get; set; }
        /// <summary>
        /// 确认时间
        /// </summary>
        public DateTime? IdentifyingTime { get; set; }

        /// <summary>
        /// 出库数量
        /// </summary>
        public int OutNum { get; set; }

        /// <summary>
        /// 去向
        /// </summary>
        public string WhereAbouts { get; set; }
        /// <summary>
        /// 报废人Id/返修人Id/驳回人Id
        /// </summary>
        public long? operationPersonId { get; set; }
        /// <summary>
        /// 报废人/返修人/驳回人
        /// </summary>
        public string operationPerson { get; set; }

        /// <summary>
        /// 报废时间/返修时间/驳回时间
        /// </summary>
        public DateTime? operationTime { get; set; }

        /// <summary>
        /// 报废分类
        /// </summary>
        public string ScrapReason { get; set; }

        /// <summary>
        /// 报废分类
        /// </summary>
        public Guid? ScrapReasonId { get; set; }

        /// <summary>
        ///配套出库节点Id
        /// </summary>
        public Guid? NodeId { get; set; }

        /// <summary>
        /// 工步Id集合
        /// </summary>
        public string WorkStepIdList { get; set; }

    }
}
